package config

import "github.com/zeromicro/go-zero/rest"

type MongoDB struct {
	Url        string `json:",default=mongodb://localhost:27017"`
	DbName     string `json:",default=testdb"`
	Collection string `json:",default=test"`
}

type EmailConf struct {
	From        string `json:",default=534117529@qq.com"`
	Pwd         string `json:",default=888888"`
	Server      string `json:",default=smtp.qq.com"`
	ContentType string `json:",default=text/plain"`
}

type ClientConf struct {
	ClientID     string `json:""`
	ClientSecret string `json:""`
}

type Config struct {
	rest.RestConf
	MonDB  MongoDB
	EConf  EmailConf
	Client ClientConf
}
